package com.yanti.controller;

import com.yanti.domain.ResponseResult;
import com.yanti.domain.dto.UserAnswerSubmitDTO;
import com.yanti.service.QuestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/question")
public class QuestionController {

    @Autowired
    private QuestionsService questionsService;

    @GetMapping("/getQuestionByChapterId/{id}")
    public ResponseResult getQuestionByChapterId(@PathVariable String id){
        return questionsService.getQuestionByChapterId(id);
    }

}